<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
<meta charset="utf-8" />
<title>${session.SOFT_NAME}_智能办公系统-${attachName}</title>
<meta name="description" content="Dashboard" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%include("../../resapi/style.html"){}%>
<head>
<script type="text/javascript" src="../jquery.min.js"></script>
<script type="text/javascript">
function AfterDocumentOpened() {
    //alert(document.getElementById("PDFCtrl1").Caption);
}
function SetBookmarks() {
    document.getElementById("PDFCtrl1").BookmarksVisible = !document.getElementById("PDFCtrl1").BookmarksVisible;
}

function PrintFile() {
    document.getElementById("PDFCtrl1").ShowDialog(4);
}
function SwitchFullScreen() {
    document.getElementById("PDFCtrl1").FullScreen = !document.getElementById("PDFCtrl1").FullScreen;
}
function SetPageReal() {
    document.getElementById("PDFCtrl1").SetPageFit(1);
}
function SetPageFit() {
    document.getElementById("PDFCtrl1").SetPageFit(2);
}
function SetPageWidth() {
    document.getElementById("PDFCtrl1").SetPageFit(3);
}
function ZoomIn() {
    document.getElementById("PDFCtrl1").ZoomIn();
}
function ZoomOut() {
    document.getElementById("PDFCtrl1").ZoomOut();
}
function FirstPage() {
    document.getElementById("PDFCtrl1").GoToFirstPage();
}
function PreviousPage() {
    document.getElementById("PDFCtrl1").GoToPreviousPage();
}
function NextPage() {
    document.getElementById("PDFCtrl1").GoToNextPage();
}
function LastPage() {
    document.getElementById("PDFCtrl1").GoToLastPage();
}
function SetRotateRight() {
    document.getElementById("PDFCtrl1").RotateRight();
}
function SetRotateLeft() {
    document.getElementById("PDFCtrl1").RotateLeft();
}
</script>

</head>
<body>
	<div id="officediv">${pageoffice}</div>
	<form action="">
		<input type="hidden" name="attachId" id="attachId" value="${attachId}">
	</form>
</body>
<script type="text/javascript">
    $(function(){
    	setOfficeWH();
    });
    window.onresize=function(){ 
    	setOfficeWH();
	    }
    function setOfficeWH(){
        $("#officediv").css("height",document.documentElement.clientHeight);
        $("#officediv").css("width",document.documentElement.clientWidth);
    }
    </script>
</html>
